﻿using System;
using System.Collections.Generic;

using Gonte.UI;

namespace MyWpfControlsTestBench.Model
{
    [UserInterface(
        LabelProperty = "Name", 
        CollapsedIconUri = @"pack://application:,,/Images/ClosedFolder.bmp",
        ExpandedIconUri = @"pack://application:,,/Images/OpenFolder.bmp"
        )]
    [UserInterfaceItem(PropertyName = "Children")]
    public class RootTreeItem
        : IComparable
    {
        private String _name;

        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private List<ChildTreeItem> _children = new List<ChildTreeItem>();

        public List<ChildTreeItem> Children
        {
            get { return _children; }
            set { _children = value; }
        }

        #region IComparable Members

        public int CompareTo(Object obj)
        {
            throw new NotImplementedException();
        }

        #endregion
    }

    [UserInterface(
        LabelProperty = "Name",
        CollapsedIconUri = @"pack://application:,,/Images/RootCollapsed.jpg",
        ExpandedIconUri = @"pack://application:,,/Images/RootExpanded.jpg"
        )]
    [UserInterfaceItem(PropertyName = "Children")]
    [UserInterfaceItem(PropertyName = "Children2")]
    public class RootTreeItem2
        : IComparable
    {
        private String _name;

        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private List<ChildTreeItem> _children = new List<ChildTreeItem>();

        public List<ChildTreeItem> Children
        {
            get { return _children; }
            set { _children = value; }
        }

        private List<ChildTreeItem2> _children2 = new List<ChildTreeItem2>();

        public List<ChildTreeItem2> Children2
        {
            get { return _children2; }
            set { _children2 = value; }
        }

        #region IComparable Members

        public int CompareTo(Object obj)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
